
var recordList = {
    
    //删除记录
    delRecord: function(id){
        if(confirm("确定要删除此记录")){
            $.ajax({
                type: "POST",
                url: "http://votesys.com/index/delrecord",
                data: "id="+id,
                dataType: "JSON",
                success: function(res){
                    if(res.success == 1)
                    {    
                        alert("删除成功！");
                        location.reload();
                    }
                    else
                    {
                        alert("删除失败！");
                    }
                }
            });
        }
    }
}